//
//  YHInputTextView.h
//  AddressBookCloud
//
//  Created by 林宁宁 on 2020/5/12.
//  Copyright © 2020 林宁宁. All rights reserved.
//

#import "YHBaseView.h"
#import "YHConstant.h"

NS_ASSUME_NONNULL_BEGIN

@interface YHInputTextView : YHBaseView

/// 是垂直居中的 默认YES
@property (assign, nonatomic) BOOL isVerticalCenter;

@property (copy, nonatomic) NSString * text;
@property (retain, nonatomic) NSAttributedString * _Nullable attText;


/// 快要开始编辑回调
@property (copy, nonatomic) BOOL(^beginEditBlock)(YHInputTextView * passTextView);
/// 内容发生变化
@property (copy, nonatomic) void(^didChangeBlock)(YHInputTextView * passTextView);

@property (copy, nonatomic) void(^endEditBlock)(YHInputTextView * passTextView);


- (void)addLeftViewShowSize:(CGSize)size image:(UIImage *)image;
- (void)addRightViewShowSize:(CGSize)size image:(UIImage *)image;
- (void)addRightViewShowSize:(CGSize)size image:(UIImage *)image action:(VoidBlock)action;

- (void)addLeftViewShowSize:(CGSize)size title:(NSString *)title;
- (void)addRightViewShowSize:(CGSize)size title:(NSString *)title;

- (void)addViewShowSize:(CGSize)size title:(NSString *)title image:(UIImage *)image left:(BOOL)isLeft;

- (void)addHeadViewShowSize:(CGSize)size customView:(UIView *)customView isLeft:(BOOL)isLeft;

- (void)cleanLeftView;
- (void)cleanRightView;



@end

NS_ASSUME_NONNULL_END
